package com.bright.ghj.overt.repository.primary;

import com.bright.ghj.overt.pojo.po.primary.FileList;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface FilelistRepository extends JpaRepository<FileList, String>, JpaSpecificationExecutor<FileList> {

    @Query("from FileList where fileName=:fileName and visible=true")
    FileList getFileListByFileName(@Param("fileName") String fileName);

//    @Query("from FileList where parentFileName=:parentFileName and visible=true")
//    List<FileList> findSubFileListsByParentFileName(@Param("parentFileName") String parentFileName);

}